package com.liming.common.pojo.dto.order.user.mini;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.liming.common.serializer.YuanToCentDeserializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author liming
 * @date 2025/4/1
 */
@Data
@Schema(description = "小程序 - 用户在订单中选择优惠券")
public class MiniOrderSelectCouponDTO {

    @Schema(description = "优惠券ID")
    private Long couponId;

    @Schema(description = "商品列表")
    private List<MiniOrderProductDTO> productList;

    @Schema(description = "订单金额")
    @JsonDeserialize(using = YuanToCentDeserializer.class)
    private Integer amount;
}
